package net.bbtang.website.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import net.bbtang.website.pojo.UserPublishInfoDTO;

@Repository("userPublishInfoMapper")
public interface UserPublishInfoMapper {
	
	int add(UserPublishInfoDTO dto);
	
	void updateStatue(UserPublishInfoDTO dto);
	
	List<UserPublishInfoDTO> search(@Param("currentSize")Integer currentSize
			,@Param("userId")Integer userId,@Param("publishId")Integer publishId,@Param("publishType")Integer publishType
			,@Param("publishState")Integer publishState,@Param("userGroupId")Integer userGroupId);
	
	List<UserPublishInfoDTO> searchAll(@Param("userId")Integer userId,@Param("publishId")Integer publishId,@Param("publishType")Integer publishType
			,@Param("publishState")Integer publishState,@Param("userGroupId")Integer userGroupId);
}
